package com.midea.ai.air.ui.chat;

/**
 * Created by ouyangdi on 2015/12/30.
 * 聊天记录数据模型
 */
public class ChatMsgModel {
    private String name;
    private String msg;
    private Type type;
    private long time; //语音时长

    public ChatMsgModel(String msg, Type type) {
        this.msg = msg;
        this.type = type;
    }

    public ChatMsgModel(String name, String msg, Type type) {
        this.name = name;
        this.msg = msg;
        this.type = type;
    }

    public enum Type {
        RECEIVE, SEND_TEXT, SEND_VOICE
    }

    public String getName() {
        return name;
    }

    public String getMsg() {
        return msg;
    }

    public Type getType() {
        return type;
    }

    public long getTime() {
        return time;
    }
}
